package com.ck.ips.model.vo.device;

import com.ck.core.util.DateUtils;

import java.io.Serializable;

/**
 * 
 * <p>Title: DeviceDetailVO</p>
 * <p>Description: 设备详情vo</p>
 * @author huangf 
 * @date 2019年5月5日
 */
public class DeviceDetailVO extends DeviceBasicInfoVO implements Serializable {

	/** 门店名称 */
	private String storeName;
	/** 楼栋号 */
	private String building;
	/** 单元号 */
	private String unit;
	/** 楼层号 */
	private String floor;
	/** 具体位置 */
	private String position;

	/** mips版本升级时间 */
	private String softwareUpgradeTime;
	/** 固件版本升级时间 */
	private String firmwareUpgradeTime;
	
	// 以下为设置信息（长期设置）
    /** 定时开关机-关机时间 */
    private String timeShutdown;
    /** 定时开关机-开机时间 */
    private String timeBoot;
	/** 非工作日开机时间 */
	private String timeBootNonWorkDay;
	/** 非工作日关机时间 */
	private String timeShutdownNonWorkDay;
	/** 人脸识别开关 */
	private Integer faceSwitch;
	/** WiFi探针开关 */
	private Integer wifiSwitch;
    /** 定时开关屏-关屏时间 */
    private String timeShutdownScreen;
    /** 定时开关屏-开屏时间 */
    private String timeBootScreen;
    /** 音量设置 */
    private Integer deviceVolume;

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getBuilding() {
        return building;
    }

    public void setBuilding(String building) {
        this.building = building;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getFloor() {
        return floor;
    }

    public void setFloor(String floor) {
        this.floor = floor;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getSoftwareUpgradeTime() {
        return softwareUpgradeTime;
    }

    public void setSoftwareUpgradeTime(String softwareUpgradeTime) {
        this.softwareUpgradeTime = softwareUpgradeTime;
    }

    public String getFirmwareUpgradeTime() {
        return firmwareUpgradeTime;
    }

    public void setFirmwareUpgradeTime(String firmwareUpgradeTime) {
        this.firmwareUpgradeTime = firmwareUpgradeTime;
    }

    public String getTimeShutdown() {
        return timeShutdown;
    }

    public void setTimeShutdown(String timeShutdown) {
        this.timeShutdown = timeShutdown;
    }

    public String getTimeBoot() {
        return timeBoot;
    }

    public void setTimeBoot(String timeBoot) {
        this.timeBoot = timeBoot;
    }

    public String getTimeBootNonWorkDay() {
        return timeBootNonWorkDay;
    }

    public void setTimeBootNonWorkDay(String timeBootNonWorkDay) {
        this.timeBootNonWorkDay = timeBootNonWorkDay;
    }

    public String getTimeShutdownNonWorkDay() {
        return timeShutdownNonWorkDay;
    }

    public void setTimeShutdownNonWorkDay(String timeShutdownNonWorkDay) {
        this.timeShutdownNonWorkDay = timeShutdownNonWorkDay;
    }
    public boolean getBootFlag() {
        return !(DateUtils.ZERO_TIME_STRING.equals(this.timeBoot)
                && DateUtils.ZERO_TIME_STRING.equals(this.timeBootNonWorkDay)
                && DateUtils.ZERO_TIME_STRING.equals(this.timeShutdown)
                && DateUtils.ZERO_TIME_STRING.equals(this.timeShutdownNonWorkDay));
    }
    public Integer getFaceSwitch() {
        return faceSwitch;
    }

    public void setFaceSwitch(Integer faceSwitch) {
        this.faceSwitch = faceSwitch;
    }

    public Integer getWifiSwitch() {
        return wifiSwitch;
    }

    public void setWifiSwitch(Integer wifiSwitch) {
        this.wifiSwitch = wifiSwitch;
    }

    public String getTimeShutdownScreen() {
        return timeShutdownScreen;
    }

    public void setTimeShutdownScreen(String timeShutdownScreen) {
        this.timeShutdownScreen = timeShutdownScreen;
    }

    public String getTimeBootScreen() {
        return timeBootScreen;
    }

    public void setTimeBootScreen(String timeBootScreen) {
        this.timeBootScreen = timeBootScreen;
    }

    public Integer getDeviceVolume() {
        return deviceVolume;
    }

    public void setDeviceVolume(Integer deviceVolume) {
        this.deviceVolume = deviceVolume;
    }

    @Override
    public String toString() {
        return "DeviceDetailVO{" +
                "storeName='" + storeName + '\'' +
                ", building='" + building + '\'' +
                ", unit='" + unit + '\'' +
                ", floor='" + floor + '\'' +
                ", position='" + position + '\'' +
                ", softwareUpgradeTime='" + softwareUpgradeTime + '\'' +
                ", firmwareUpgradeTime='" + firmwareUpgradeTime + '\'' +
                ", timeShutdown='" + timeShutdown + '\'' +
                ", timeBoot='" + timeBoot + '\'' +
                ", timeBootNonWorkDay='" + timeBootNonWorkDay + '\'' +
                ", timeShutdownNonWorkDay='" + timeShutdownNonWorkDay + '\'' +
                ", faceSwitch=" + faceSwitch +
                ", wifiSwitch=" + wifiSwitch +
                ", timeShutdownScreen='" + timeShutdownScreen + '\'' +
                ", timeBootScreen='" + timeBootScreen + '\'' +
                ", deviceVolume=" + deviceVolume +
                '}';
    }
}
